package com.baobaotao.ws.serviceImpl;

import javax.annotation.Resource;
import javax.jws.WebService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;
import com.baobaotao.ws.model.LvOrderDtoResposne;
import com.baobaotao.ws.service.WSOrderService;

@Service("WSOrderService")
@WebService(endpointInterface = "com.baobaotao.ws.service.WSOrderService",targetNamespace= "http://service.ws.baobaotao.com/")
public class WSOrderServiceImpl   implements WSOrderService {
  
 private static final Log logger = LogFactory.getLog(WSOrderServiceImpl.class);
  

 public String sayHello(String name) {  
     return "hello," + name;  
 }  
 /**
  * 同步已经审核的订单到商务接口定义
  * @Method: synAuditOrderToBZ 
  * @Description:  
  * @param startTime  审核开始时间（查询范围起始时间，格式：yyyy-mm-dd HH:mm:ss）
  * @param endTime    审核结束时间（查询范围结束时间，格式：yyyy-mm-dd HH:mm:ss）
  * @return OrderList
  */
 public LvOrderDtoResposne synAuditOrderToBZ(String startTime, String endTime) {
  if(logger.isInfoEnabled()){
     logger.info("*****WSOrderServiceImpl.synAuditOrderToBZ() method begin*****");
  }
   
  LvOrderDtoResposne lvOrderDtoResposne=new LvOrderDtoResposne();
  //判断查询日期时间差
   
  //根据审核时间查询已经审核订单集合
  try {
   if("".equals(startTime)&&"".equals(endTime)){
  
   }
   lvOrderDtoResposne.getResult().setStatus("SUCCEED");
   lvOrderDtoResposne.getResult().setStatus("SUCCEED");
   lvOrderDtoResposne.getResult().setMessage("成功");
  } catch (Exception e) {
   lvOrderDtoResposne.getResult().setStatus("FAIL");
   lvOrderDtoResposne.getResult().setMessage(e.getMessage());
   e.printStackTrace();
  }
   
  if(logger.isInfoEnabled()){
   logger.info("*****WSOrderServiceImpl.synAuditOrderToBZ() method end*****");
  }
  return lvOrderDtoResposne;
 }
  
}